import fly from '../utils/fly.js'
/**
 * 首页轮播图
 */
export function HomeSwiper(shop_id,position) {
	return fly.get({
		url: '/home/list/'+position+'/'+shop_id,
		needToken: true
	})
}

/**
 * 首页商品列表
 */
export function HomeGoodsList(shop_id) {
	return  fly.get({
		url: '/index/shop/goods/'+shop_id,
		needToken: true
	})
}
/**
 * 查询店铺详情
 */
export function getShopDetail(shop_id,params) {
	return  fly.get({
		url: '/index/shop/shop/'+shop_id,
		needToken: false,
		params:params
	})
}
/**
 * 商品标签
 */
export function getLabel(params) {
	return fly.get({
		url: '/home/goods/tags',
		needToken: false,
		params
	})
}